<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;

class NewsController extends Controller{

    public function newsadd(Request $req){
        if( empty ($_POST) ){
            return view('/Admin/filmnews');
        }else{
            $filmnew =new \App\Filmnew();
            $filmnew->title=$req->title;
            $filmnew->arter=$req->arter;
            $filmnew->info=$req->info;
            $filmnew->fbtime=time();
            $filmnew->save();
            return back();
        }

    }
}
